# Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>

pkgname=python-thrift
pkgver=0.18.1
pkgrel=2
pkgdesc='Python bindings for the Apache Thrift RPC system'
arch=(loong64 x86_64)
license=(Apache)
url='https://thrift.apache.org/'
depends=(python)
makedepends=(python-setuptools)
source=(thrift-$pkgver.zip::https://github.com/apache/thrift/archive/$pkgver.zip)
sha256sums=('5f803ff19acd6dc0e3857bbe46e1b01ba18526ea41342a36ab17ef18ede92017')

check() {
  cd thrift-$pkgver/lib/py
  # python setup.py test TODO: run tests
}

package() {
  cd thrift-$pkgver/lib/py
  python setup.py install --root="$pkgdir" --optimize=1
}
